<!doctype html>
<html class="no-js" lang="en"> 
    <head>
      <meta charset="utf-8">
    
      <title></title>
      <meta content="" name="description">
      <meta content="" name="keywords">
      <meta name="author" content="">
    
          <meta  name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> 
          
    
          <link rel="stylesheet" href="css/style.css">



          <script src="js/libs/jquery-1.7.1.min.js"></script>



                  <script>
                  var webdir='http://www.2admin.co.cc';
                  function getUrlVars2() 
                  {
                  var vars = {};
                  var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
                  vars[key] = value;
                  });
                  return vars;
                  }
                  $(document).ready(function() {
                       $('#commentform').submit(
                       function() 
                       {
                        if($('#sdetail').val()=="")
                        {
                            alert('กรุณากรอกรายละเอียด');
                            return false;
                        }   
                        $.post(webdir+'/ajax.php',{functioncall:'addsubforum',uid:localStorage.getItem("uid"),detail:$('#sdetail').val(),foid:getUrlVars2()['foid']} ,function(data) {
                                              var myObject = eval('(' + data + ')');
                                              if(myObject.error==0)
                                              {
                                                  alert('ตอบกลับเรียบร้อยแล้ว');
                                                  location.href="forum-detail.html?foid="+getUrlVars2()['foid'];
                                                  return false;
                                              }else
                                              {
                                                  alert('เกิดข้อผิดพลาด');
                                                  return false;
                                              }
                                              
                        });
                          
                       return false;
                       }
                       );
                       
                       var foid=getUrlVars2()['foid'];
                        $.post(webdir+'/ajax.php',{functioncall:'getsubforumbyfoid',uid:localStorage.getItem("uid"),foid:foid} ,function(data) {
                                              var myObject = eval('(' + data + ')');
                                              if(myObject.error==0)
                                              {
                                                   if(myObject.pic)
                                                     {
                                                         var pic="http://www.2admin.co.cc/images/user_c/"+myObject.pic;
                                                     }else
                                                     {
                                                         var pic="images/forum-detail-member.jpg";
                                                     }
                                                 var strtable='<li><div class="member"><img src="'+pic+'" width="110" height="110"><a class="name">'+myObject.username+'</a></div><div class="post"><h3>'+myObject.ftitle+'</h3><div class="meta">'+myObject.createdate+'</div>'+myObject.fdetail+'</div></li>';
                                                 $('.latest').append(strtable);
                                                 for(variable in myObject.data)
                                                 {
                                                     var obj = myObject.data[variable]; 
                                                     
                                                     if(obj.pic)
                                                     {
                                                         var pic="http://www.2admin.co.cc/images/user_c/"+obj.pic;
                                                     }else
                                                     {
                                                         var pic="images/forum-detail-member.jpg";
                                                     }
                                                     
                                                     var strtable='<li><div class="member"><img src="'+pic+'" width="110" height="110"><a class="name">'+obj.username+'</a></div><div class="post"><h3>'+myObject.ftitle+'</h3><div class="meta">'+obj.createdate+'</div>'+obj.detail+'</div></li>';
                                                     $('.latest').append(strtable);
                                                 }
                                              
                                              }else
                                              {
                                                  alert('เกิดข้อผิดพลาด');
                                              }
                                              
                        });
                       
                       
                      
                  });
                  </script>

<link rel="stylesheet" href="css/login.css"> 


        
    </head>

<body >
  <div class="container">
          <header>
              <h1><a href="index.html" class="ir"></a></h1>

              <h2 class="ir"></h2>
              <h3 class="ir"><em></em></h3>
                                                <form name="login" method="post" action="logout.html">    
                                <section id="login"> 
                                <p><div  style="padding-right: 10px; float: left;"><a href="" id="userlink"></a></div><div style=" float: left;"><input type="image" src="images/logout.png" ></div></p>
                                 
                                                                 </section>  
                                      </form>      
                        
              <nav>
                <p><a href="http://www.infostant.com">Home</a> | <a href="package">Package</a> | <a href="service">Service</a> | <a href="promotion">Promotion</a> | <a href="aboutus">About Us</a> | <a href="contact">Contact Us</a></p>

            </nav>
            <div style="display:none;" id="homeinfo">http://www.infostant.com</div> 
          </header>
        <div id="webdir" style="display: none;">http://www.infostant.com</div>
<div id="subdir" style="display: none;">infostant.com</div>
          <div id="main" role="main" class="clearfix">
              <aside>
                  <a href="javascript:void(0);"><img src="images/img-avatar.jpg" alt="img-avatar" /></a>

                  <h3>Feature</h3> <ul class="v">
                       <li><a href="forum.html" class="icon">Forum</a></li>
                      <li><a href="index.html" class="icon">Calendar</a></li>
                      <li><a href="message.html" class="icon">Private Message</a></li>
                      <li><a href="meetingroom.html" class="icon">Meeting Room</a></li>
                      <li><a href="download.html" class="icon">Document Download</a></li>
                  </ul>
              </aside>
              
              <article>

                  
                   <section class="clearfix" id="featured">
                   <img src="images/img_featured_2.jpg" alt="featured" />
                   
                   </section>
                  
                  
                   
                  
                  <section class="clearfix" id="itenary">
                      <h4 class="webboard">Forum</h4>
                      <div id="detail">
                          <div class="black">Petroleum Supply and Logistics</div>
                          <ul class="latest">

                              
                          </ul>
                      </div>
                      
                      
                      <div id="comment">

                      
                      
                      
  <!--  <div id="pagination">
        <ul>
            <li>Page 1 of 21</li><li class="current"><a href="http://www.infostant.com/search//1 ">1</a></li>
             <li><a href="">2</a></li>
             <li><a href="">3</a></li>
             <li><a href="">4</a></li>
             <li><a href="">5</a></li>
  
         </ul>
    </div>           -->
                      
                      
                      
                      

                         <div id="respond">

                                        <div class="cancel-comment-reply">
                                            <small><a style="display:none;" href="/expobar-megacrem-minicontrol-1-gr-v-a-ne/#respond" id="cancel-comment-reply-link" rel="nofollow">กดที่นี่เพื่อยกเลิกการตอบ</a></small>
                                        </div>
                                        
                                        
                                        <form id="commentform" method="post" action="">
 
                                        
                                        <!--<p><small><strong>XHTML:</strong> You can use these tags: <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code></small></p>-->
                                        <br>
										
                                        <p>&nbsp;&nbsp;<strong>รายละเอียด</strong><textarea tabindex="4" rows="10" cols="100%" id="sdetail" name="sdetail"></textarea></p>
                                        
                                        <p><input type="submit" value="Send" tabindex="5" id="submit" name="submit">

                                        </p>
                                        
                                        </form>
                                        
                                        </div>
                            
                            
                      </div>
                      
                      
                  
                      
                      
				</section>
                  
                  
                  
                   
                  
</article>
                </div>   <footer>
              <nav>

                  <p><a href="http://www.infostant.com">Home</a> | <a href="package">Package</a> | <a href="service">Service</a> | <a href="promotion">Promotion</a> | <a href="contact">Contact Us</a></p>
                  <p id="copyright">Copyright &copy; 2011. All Rights Reserved.</p>

              </nav>
          </footer>
  </div> <!-- .container -->


  <!-- JavaScript at the bottom for fast page loading -->
<script src="js/default/login.js"></script>
  <!-- end scripts -->


</body>
</html>

